﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace stefab.Musique
{
    public class Event
    {

#region Champs
        /// <summary>
        /// Id de l'event
        /// </summary>
        private string _id = "Inconnu";


        /// <summary>
        /// Titre de l'event
        /// </summary>
        private string _title = "Inconnu";


        /// <summary>
        /// Description de l'event
        /// </summary>
        private string _description = "Inconnu";


        /// <summary>
        /// Lien de l'image
        /// </summary>
        private string _linkImage = "Inconnu";


        /// <summary>
        /// Lien du site
        /// </summary>
        private string _linkSite = "Inconnu";

        /// <summary>
        /// Date de l'évènement
        /// </summary>
        private string _date = "Inconnu";

        private Venue uneVenue = null;

        private List<Artist> lesArtistes = null;
   #endregion
        
#region Propriétés

        public string id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string description
        {
            get { return _description; }
            set { _description = value; }
        }

        public string linkImage
        {
            get { return _linkImage; }
            set { _linkImage = value; }
        }

        public string linkSite
        {
            get { return _linkSite; }
            set { _linkSite = value; }
        }

        public string date
        {
            get { return _date; }
            set { _date = value; }
        }

#endregion

        public Venue UneVenue
        {
            get
            {
                return uneVenue;
            }
            set
            {
                uneVenue = value;
            }
        }

        public List<Artist> lesArtists
        {
            get
            {
                return lesArtistes;
            }
            set
            {
                lesArtistes = value;
            }
        }

#region Constructeurs
        public Event(string id, string title, string description)
        {
            this.id = id;
            this.title = title;
            this.description = description;
        }

        public Event(string id, string title, string description, string linkImage, string linkSite, string date,Venue venue, List<Artist> artistes)
        {
            this.id = id;
            this.title = title;
            this.description = description;
            this.linkImage = linkImage;
            this.linkSite = linkSite;
            this.date = date;
            this.UneVenue = venue;
            this.lesArtists = artistes;
        }

#endregion
        public List<Artist> getArtistsEvent()
        {
            return lesArtistes;
        }

        public Venue getVenue()
        {
            return uneVenue;
        }
        
        }




}
